/**
 * Created by Administrator on 2017/11/16 0016.
 */
var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var YjxBaseModel = require('./YjxBaseModel');
var CONFIG = require('../../config');


var YjxFormTmplModel = function (obj) {
    YjxBaseModel.call(this,obj);
  // CREATE TABLE `yjx_form_info` (
  //  CREATE TABLE `yjx_form_tmpl` (
  //`form_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '表单模版id',
  //`form_type` int(3) NOT NULL DEFAULT '10' COMMENT '类型:10用户作品收集信息用,20待定',
  //`key1` varchar(100) DEFAULT '' COMMENT '项目1',
  //`key2` varchar(100) DEFAULT '' COMMENT '项目2',
  //`key3` varchar(100) DEFAULT '' COMMENT '项目3',
  //`key4` varchar(100) DEFAULT '' COMMENT '项目4',
  //`key5` varchar(100) DEFAULT '' COMMENT '项目5',
  //`key6` varchar(100) DEFAULT '' COMMENT '项目6',
  //`key7` varchar(100) DEFAULT '' COMMENT '项目7',
  //`key8` varchar(100) DEFAULT '' COMMENT '项目8',
  //`key9` varchar(100) DEFAULT '' COMMENT '项目9',
  //`key10` varchar(100) DEFAULT '' COMMENT '项目10',
  //`thumb` varchar(1000) DEFAULT NULL COMMENT '展示图(保留字段)',
  //`desc` varchar(200) DEFAULT NULL COMMENT '备注',
  //`create_time` datetime NOT NULL,
  //`update_time` datetime NOT NULL,
  //`update_by` varchar(50) DEFAULT NULL,
  //`del_flg` int(1) NOT NULL DEFAULT '0',
  //      PRIMARY KEY (`form_id`)
  //  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='表单项目模版表'
};

YjxFormTmplModel.prototype = new YjxBaseModel();

// 取得表名
YjxFormTmplModel.prototype.getTableName = function(){
    return 'yjx_form_tmpl';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
YjxFormTmplModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'form_id='+this.form_id;
};




module.exports = YjxFormTmplModel;